﻿<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="A_HistoryServer.aspx.cs" Inherits="ScottCateAjax2008.Lesson09.A_HistoryServer" Title="History Control - Server Side" %>
<%@ Register src="../UserControls/BasicGridView.ascx" tagname="BasicGridView" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        
    <asp:ScriptManager ID="ScriptManager1"
                EnableHistory="true"
                EnableSecureHistoryState="false"
                runat="server" />
    <br />
    
    <script language="javascript" type="text/javascript">
//        function pageLoad() { alert('page loaded'); }
//        
//        var pageLoadCounter = false;
//        function pageLoad() {
//            if (!pageLoadCounter) {
//                pageLoadCounter = true;
//                alert('run once and only once');
//            }
//        }
    </script>
    
    <ul>
        <li>EnableHistory is Off by default</li>
        <li>Doesn't work without the events</li>
        <li>EnableSecureHistoryState is on by default</li>
    </ul>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <uc1:BasicGridView ID="BasicGridView1" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
        
</asp:Content>